//
// Created by wkm on 2023-12-08.
//

#ifndef MYSYSTEMCLEARNING_PULSE_H
#define MYSYSTEMCLEARNING_PULSE_H

#include "systemc.h"

#define DELAY 2,SC_NS
#define ON_DURATION 1,SC_NS

SC_MODULE(pulse) {
    sc_in<bool> clk;
    sc_out<bool> pulse_out;

    void prc_pulse();

    SC_CTOR(pulse) {
        SC_THREAD(prc_pulse);
        sensitive_pos << clk;
    }
};

#endif //MYSYSTEMCLEARNING_PULSE_H
